interface Str{
    void print();
}
public class Demo2 {
    public static void main(String[] args) {
        int a = 5;
        Str str = new Str() {
            @Override
            public void print() {
                System.out.println(a);
            }
        };
        str.print();
    }
}
